package com.larissa.quiz;

import android.util.Log;

import androidx.lifecycle.ViewModel;

import java.util.ArrayList;
import java.util.List;

public class QuestionListViewModel extends ViewModel {
    private static final String TAG="QuestionListViewModel";
    public List<Question> questions;
    private QuizRepository repository;

    public QuestionListViewModel(){
        repository=QuizRepository.getInstance();
        questions=repository.getQuestions();
        Log.d(TAG,String.format("questions size: %s",questions.size()));
    }

}
